Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


FrameShapeChanged

The FrameShapeChanged method is called to notify this part that the frame shape of one of its display frames has changed.

void FrameShapeChanged (in ODFrame frame);
frame
A reference to a display frame that was reshaped.
DISCUSSION
OpenDoc calls this method when it or this part's containing part changes the frame shape of one of this part's display frames.

This part should perform any actions necessary to respond to the new shape. For example, your part should change its content layout, change its used shape, or resize its embedded frames.

Your part also has the option of requesting a different frame shape using its display frame's RequestFrameShape method, though it must be able to accept the shape it is given. If the size of the frame is insufficient, your part may ask its containing part for additional frames by calling its containing part's RequestEmbeddedFrame method.

OVERRIDING
When you subclass ODPart, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.

EXCEPTIONS
kODErrInvalidFrame
The specified frame is not a display frame of this part.
SEE ALSO
The ODFrame::ChangeFrameShape method (page 306).
The ODPart::RequestEmbeddedFrame method (page 542).
The ODPart::RequestFrameShape method (page 544).
"The FrameShapeChanged Method" on page 61 in OpenDoc Cookbook.
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Resizing an Embedded Frame" on page 120 in OpenDoc Programmer's Guide.
"Zooming" on page 230 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help